const { ccclass, property } = cc._decorator;
import BasePageCtrl, { AnimType } from "./BasePageCtrl";
import WeChatLoginPage from "./WeChatLoginPage";

@ccclass
export default class WeChatLoginPageCtrl extends BasePageCtrl {
    @property(cc.Prefab)
    prefabUrl = "WeChatLoginPage";

    @property(cc.String)
    className = "WeChatLoginPageCtrl";

    public ui;
    onLoad() {
        this.onUILoad();
        this._animType = AnimType.SCALE;
        this._touchControl = false;
        this._hasPeneLock = true;
        this._hasBlack = true;
        this._hasTouchLock = false;
        super.onLoad();
        this.addButtonListen();
    }

    start() {}

    onUILoad() {
        this.ui = this.node.addComponent(WeChatLoginPage);
    }

    addButtonListen() {}

    clickClose() {
        this.hide();
    }
}
